import {createRouter, createWebHashHistory} from "vue-router";
import Index from "@/pages/frontend/index.vue";
import Login from "@/pages/admin/login.vue"

const routes = [
    {
        path: '/',//路由地址
        component: Index,
        meta:{
            title: "Weblog 首页" //页面标题
        }
    },
    {
        path: '/login',
        component: Login,
        meta: {
            title: "Weblog 登录页"
        }
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router